all: nce_socket.o nce_servant.o nce_proxy.o echoServer.o client server

nce_socket.o: nce_socket.h nce_servant.h
	g++ -o $@ -c nce_socket.cpp

nce_servant.o: nce_servant.h nce_socket.h
	g++ -o $@ -c nce_servant.cpp

nce_proxy.o: nce_proxy.h nce_socket.h
	g++ -o $@ -c nce_proxy.cpp

echoServer.o: echoServer.h
	g++ -o $@ -c echoServer.cpp

client: echoServer.o nce_proxy.o nce_servant.o nce_socket.o
	g++ -o client client.cpp $^

server: echoServer.o nce_proxy.o nce_servant.o nce_socket.o
	g++ -o server server.cpp $^

clean:
	rm -f server client *.o
